﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QXBook.Utils;

namespace QXBook.Model
{
    /// <summary>
    /// 核心模板，资讯，商品，视频都从这里继承
    /// </summary>
    public class CoreTemplate
    {
        public int CoreID { get; set; }

        public int CategoryID { get; set; }

        public CategoryInfo Categorie { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 简介
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 访问量
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// 作者
        /// </summary>
        public string Author { get; set; }

        /// <summary>
        /// 资源小图
        /// </summary>
        public string SmallImg { get; set; }
        /// <summary>
        /// 资源大图
        /// </summary>
        public string BigImg { get; set; }

        public Part PartMod { get; set; }

        /// <summary>
        /// 是否发布
        /// </summary>
        public YesNo IsPublish { get; set; }

        public DateTime AddDate { get; set; }

        public DateTime UpdateDate { get; set; }
    }
}
